package org.llc.gof.structure.proxy.dynamic.basic0;

/**
 * @author harvey
 */
public class Client {

	public static void main(String[] args) {

		ISubject player = new SubjectImpl("test");

		ClassLoader loader = player.getClass().getClassLoader();

		ISubject proxy = DynamicProxy.newProxyInstance(loader, new Class[] { ISubject.class },
				new MyInvocationHandler(player));

		proxy.doAnything();
		proxy.doSomething("something");
	}
}
